package cn.edu.zafu.bigdata.wupeng;

class MathOperations{
    public int add(int a,int b){
        return a + b;
    }

    public double add(double a,double b){
        return a + b;
    }

    public int add(int a,int b,int c){
        return a + b +c;
    }
}

public class TestMathOperations {
    public static void main(String[] args) {
        MathOperations mathOps=new MathOperations();

        int sumInt =mathOps.add(5,3);
        System.out.println("Sum of them :"+sumInt);

        double sumDouble = mathOps.add(5.5 ,3.3);
        System.out.println("Sum of them :"+sumDouble);

        int sumTInt =mathOps.add(5,3,4);
        System.out.println("Sum of them :"+sumTInt);
    }

}
